Release 10.1A: OpenEdge Development:
Java Open Clients
Preparing and managing a ProDataGraph parameter
The Progress 4GL requires a different programming model to manage
DATASETorDATASET-HANDLE(static or dynamic ProDataSet) parameters. However to manage aProDataGraphparameter in a Java Open Client application, you use the same programming model to map both types of ProDataSet parameters.Parameter passing modes
From the viewpoint of the Java Open Client, the minimum information that you must provide in a
ProDataGraphto map a ProDataSet parameter depends on the parameter passing mode of the application service:
OUTPUTparameters — You must pass acom.progress.open4gl.ProDataGraphHolderobject instance (see the "ProDataGraphHolder class" section). Use of this holder class is similar to holder classes for other parameter data type mappings. On output, the holder object contains a reference to acom.progress.open4gl.ProDataGraphobject that you can access. For more information on managing aProDataGraphfor anOUTPUTProDataSet parameter, see the "Passing a ProDataGraph as OUTPUT" section.INPUTparameters — You must pass acom.progress.open4gl.ProDataGraphobject instance. Before passing theProDataGraph, as a minimum, you must create and initialize (or obtain) the object with aProDataGraphMetaDataobject specifying the number and meta data of its underlying tables (ProDataObjectMetaData objects), and which must map to the ProDataSet temp-table schemas. In this meta data, you must also includeProDataRelationMetaDataobjects that map to allDATA-RELATIONobjects defined in a static ProDataSet parameter. Differences do exist for how the schema must be passed between static and dynamic ProDataSets. For more information on managing aProDataGraphfor anINPUTProDataSet parameter, see the "Passing a ProDataGraph as INPUT or INPUT-OUTPUT" section.INPUT-OUTPUTparameters — You must pass an instance ofcom.progress.open4gl.ProDataGraphHolderthat contains a reference to a client-suppliedcom.progress.open4gl.ProDataGraphobject instance (see the "ProDataGraphHolder class" section). Use of this holder class is similar to holder classes for other parameter data type mappings. The requirements for supplying the inputProDataGraphare the same as for passing anINPUTparameter. On output, the same holder object is changed to reference acom.progress.open4gl.ProDataGraphobject that represents the ProDataSet that is passed as output. For more information on managing aProDataGraphfor anINPUT-OUTPUTProDataSet parameter, see the "Passing a ProDataGraph as INPUT or INPUT-OUTPUT" section.ProDataGraphHolder class
The following class definition shows the constructor and method signatures for the
ProDataGraphHolderclass:
For more information on holder classes, see Chapter 4, " Passing Parameters."
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |